#ifndef LOGIN_WINDOW_H
#define LOGIN_WINDOW_H

#include <QComboBox>
#include <QDesktopServices>
#include <QSpinBox>
#include <QCheckBox>

#include "../../basewidget/customwidget.h"
#include "setting.h"
#include "main_window.hpp"

 namespace Ui {
 class login_window;
 }

 class login_window : public CustomMoveWidget
 {
     Q_OBJECT

 public:
     explicit login_window(QWidget *parent = 0);
     ~login_window();

 private slots:
     void on_btnLogin_clicked(void);
     void slot_autoLoad(void);
     void slot_ShowWindow(void);
     void slot_writeSettings(void);

 private:
     Ui::login_window *ui;
     Setting* setinf;
     alphadog_monitor::MainWindow* mainWindow = NULL;

     bool m_bConnected;
     bool m_bIsConnect = true;
     QString m_qRosIp;
     QString m_qMasterIp;

 private:

     void InitWidget(void);
     void ConnectMaster(void);
     void readSettings(void);

 };

#endif // LOGIN_WINDOW_H
